package com.kingbook.core.scripting.nodes;


import com.google.common.collect.Lists;
import org.jdom2.Element;

import java.util.List;

/**
 * @Author: Bucky
 * @Date: 2019/1/2
 * @Version 1.0
 */
class WhereNode extends TrimNode {

    private static List<String> fixList = Lists.newArrayList("AND", "OR", "and", "or");

    WhereNode(Element element) {
        prefix = "WHERE";
        suffix = "";
        prefixOverrides = fixList;
        suffixesOverrides = fixList;
        resolve(nodeList, element);
    }

}
